using System;
using System.Collections.Generic;
using System.Configuration;

namespace Microsoft.Health.Samples.PatientConnect.ContosoHealth
{
    public static class SchedulerConfig
    {
        public static readonly int Days =int.Parse(GetConfigValues("Days"));
        public static readonly int Hours =int.Parse(GetConfigValues("Hours"));
        public static readonly int Minutes =int.Parse(GetConfigValues("Minutes"));
        public static readonly int Seconds =int.Parse(GetConfigValues("Seconds"));
        public static readonly string LogFile = GetConfigValues("LogFile");
        public static readonly string LastRunLogFile = GetConfigValues("LastRunLogFile");
        public static readonly string PatientXmlFilePath = GetConfigValues("PatientXmlFilePath");
        public static readonly string PracticeFolderPath = GetConfigValues("PracticeFolderPath");
        public static readonly string ApplicationId = GetConfigValues("ApplicationId");
        
        private static string GetConfigValues(string key)
        {
            return ConfigurationManager.AppSettings[key].ToString();
        }
    }
}